package com.cloud.nacos.dubbo.demo.service.impl;

import com.cloud.nacos.dubbo.demo.entity.LoginUser;
import com.cloud.nacos.dubbo.demo.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.Date;

/**
 * @author codor
 * @date 2023/08/14 10:43
 */
@DubboService
public class UserServiceImpl implements UserService {
    /**
     * 访问
     *
     * @return 结果对象
     */
    @Override
    public LoginUser access() {
        return LoginUser.builder().username("赵先生").accessTime(new Date()).build();
    }
}
